package org.netEase.controller;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.netEase.dao.*;

import org.netEase.dao.impl.*;

import org.netEase.entity.*;

@WebServlet(urlPatterns = { "/backstageManager/adver.shtml" })
public class adver_table extends HttpServlet {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	request.setCharacterEncoding("utf-8");
	adverDao adverDao = new adverDaoImple();
	List<adver> adver=adverDao.getall();
	request.setAttribute("adver",adver);
	request.getRequestDispatcher("/backstageManager/picture-list.jsp").forward(request, response);
}
@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	this.doGet(request, response);
	}
}
